package com.yz.xyt.service;

import com.yz.xyt.domain.Major;
import com.yz.xyt.domain.ResponseResult;
import com.yz.xyt.domain.vo.MajorImportVo;
import com.yz.xyt.domain.vo.MajorVo;

import java.util.List;
import java.util.Set;

public interface IMajorService {
    int deleteByPrimaryKey(Integer sid);

    int insert(Major record);

    int insertSelective(Major record);

    Major selectByPrimaryKey(Integer sid);

    int updateByPrimaryKeySelective(Major record);

    int updateByMajorNumberSelective(Major record);

    int updateByPrimaryKey(Major record);

    void syncAddMajor(List<Major> list);

    Major selectByMajorNumber(String majorNumber);

    void syncDeleteMajor(List<Major> list);

    void syncUpdateMajor(List<Major> list);

    List<Major> convertMajor(Set<MajorImportVo> set);

    String findMajorNumberByName(String majorName);

    ResponseResult findMajorList(MajorVo majorVo);

    ResponseResult findMajorPage(MajorVo majorVo);

    ResponseResult deleteMajor(MajorVo majorVo);

    ResponseResult addMajor(Major major);
}
